import {
  Slider,
  Input, Switch, Color, selectPageVarAndCustom, Select, Extend, Area
} from '@/components/CustomPage/fields/widget'

export function labelOptions() {
  return [
    {
      type: Extend,
      option: {
        label: '标签',
        name: 'ActivityLabel',
        initalize: true,
        fields: [
          {
            type: Area,
            option: {
              label: '选择标签分类',
              required: true,
              name: 'type',
              value: '',
              async: '/backend/sysClassify/getClassifyTree',
              asyncParams: {
                classifyType: 'FLLX_BQ',
                status: 'ZT01',
                id: 'SAAS',
                t: new Date().getTime()
              },
              props: {
                children: 'children',
                label: 'classifyName',
                value: 'code',
                checkStrictly: true
              }
            }
          },
          {
            type: Select,
            option: {
              name: 'position',
              label: '标签位置',
              list: [
                {
                  name: '默认',
                  value: 'default'
                },
                {
                  name: '左上',
                  value: 'topLeft'
                },
                {
                  name: '右上',
                  value: 'topRight'
                },
                {
                  name: '左下',
                  value: 'bottomLeft'
                },
                {
                  name: '右下',
                  value: 'bottomRight'
                }
              ],
              value: ''
            }
          },
          { type: Input, option: { label: '标签标识', name: 'key' }}
        ]
      }
    }
  ]
}
